// Render a link for hCards that have email addresses.
// version 1.0
// 2006-07-08
// Copyright (c) 2006, Calvin Yu
//
// --------------------------------------------------------------------
//
// This is a Tails script.
//
// To install, you need Tails: http://blog.codeeg.com/tails-firefox-extension/
// Then restart Firefox and revisit this script and click on 'Install'.
//
// To uninstall, go to Tools/Manage Tails Scripts...,
// select "Send Email", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==TailsScript==
// @name          Send Email
// @namespace     http://blog.codeeg.com/tails
// @description   Render a link for hCards that have email addresses.
// @include       hcard
// ==/TailsScript==

getURL: function() {
  if (this.object.email)
    return "mailto:" + this.object.email;
}
